package cn.cs.mapper;

import cn.cs.pojo.ShopOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface ShopOrderMapper {

	public ShopOrder getShopOrderById(@Param(value = "id") Long id)throws Exception;

	public List<ShopOrder> getShopOrderListByMap(Map<String, Object> param)throws Exception;

	public List<Map<String, Object>> getShopOrderByMap(Map<String, Object> param)throws Exception;

	public List<Map<String, Object>> getShopOrderDetails(@Param(value = "id") String id)throws Exception;

	public Integer getShopOrderCountByMap(Map<String, Object> param)throws Exception;

	public Integer insertShopOrder(ShopOrder shopOrder)throws Exception;

	public Integer updateShopOrder(ShopOrder shopOrder)throws Exception;

	public Integer deleteShopOrderById(@Param(value = "id") Long id)throws Exception;

	public Integer insertOrder_pro_rel(Map<String, Object> param)throws Exception;

	public Integer insertEveluate(Map<String, Object> param)throws Exception;

	public Integer getCarProCun(String carId)throws Exception;

	public Integer updateCarStateFin(String carId)throws Exception;

	public  List<Map<String,Object>> getProsByShopId(String orderId)throws Exception;

	public List<ShopOrder> getShopOrderByUserId(String s);

	public List<Map<String,Object>> getProsByOrderId(String id);

   	public Map<String,Object> getShopOrderInfoById(String orderId);

	public int updateCarProListState(Map<String, Object> param);

	public Map<String,Object> getEvaluateByOrderId(String orderId);

	public List<String> getShopIds(Map<String, Object> param);

	public List<Map<String, Object>> getShopOrderAgentByMap(Map<String, Object> param)throws Exception;

	public Integer getShopOrderCountAgentByMap(Map<String, Object> param)throws Exception;

	public Map<String,Object> getShopInfoByOrderId(String id);

	public  Map<String,Object> getRepauirUserAddress(String address);

	public int getStateProByOutNum(String shopOrdernum);

	public int updateShopOrderState(Map<String, Object> param);
}
